{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "import mdptoolbox, mdptoolbox.example\n",
    "import numpy as _np\n",
    "import scipy.sparse as _sp\n",
    "y = _np.zeros((2, 3, 4))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "P, R = mdptoolbox.example.rand(10, 3)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[[-0.        ,  0.        , -0.22774651, -0.61648912, -0.        ,\n",
       "         -0.        ,  0.        , -0.        , -0.07014889, -0.78145019],\n",
       "        [ 0.84477012, -0.22142584, -0.16194633, -0.33272044,  0.        ,\n",
       "         -0.98605055, -0.07395227,  0.58748968,  0.79338813,  0.97161746],\n",
       "        [-0.91399327,  0.37067754,  0.22942862, -0.        ,  0.45552655,\n",
       "          0.77898101, -0.        ,  0.        , -0.        ,  0.07386713],\n",
       "        [-0.        , -0.        ,  0.        , -0.        ,  0.        ,\n",
       "          0.        , -0.        , -0.        , -0.64626659,  0.        ],\n",
       "        [ 0.18948885,  0.09772389, -0.44479248, -0.79195026,  0.45965146,\n",
       "         -0.28954766,  0.0024423 , -0.85766009, -0.56821225, -0.26824201],\n",
       "        [-0.        , -0.97959428,  0.        , -0.        , -0.        ,\n",
       "         -0.39786387, -0.        , -0.934448  ,  0.        , -0.        ],\n",
       "        [-0.61328778, -0.        ,  0.        , -0.        ,  0.        ,\n",
       "         -0.        ,  0.        , -0.        , -0.        ,  0.        ],\n",
       "        [-0.55431728,  0.        ,  0.22337299, -0.75100145,  0.        ,\n",
       "          0.16881346,  0.        ,  0.12261949,  0.43873487,  0.84909112],\n",
       "        [-0.        ,  0.        ,  0.        , -0.        ,  0.        ,\n",
       "          0.        , -0.26529638, -0.31932204, -0.65713907,  0.        ],\n",
       "        [ 0.        ,  0.        , -0.        ,  0.        , -0.82442827,\n",
       "         -0.        , -0.        , -0.        , -0.        , -0.        ]],\n",
       "\n",
       "       [[ 0.41328107, -0.45102679, -0.40578156, -0.37327639, -0.36469182,\n",
       "          0.        ,  0.48618499,  0.05197965,  0.78503854,  0.75726421],\n",
       "        [-0.        ,  0.42476024, -0.44803364, -0.81064693,  0.        ,\n",
       "          0.        ,  0.        , -0.11173417,  0.        ,  0.        ],\n",
       "        [ 0.50584612,  0.39581768, -0.29409124,  0.33362721,  0.31048322,\n",
       "          0.        , -0.07800571, -0.71604239, -0.59525751, -0.49520658],\n",
       "        [ 0.        , -0.37841838,  0.15977222,  0.07125882, -0.        ,\n",
       "          0.82145587, -0.        ,  0.        , -0.        ,  0.64989757],\n",
       "        [ 0.53400904,  0.        , -0.        , -0.        , -0.        ,\n",
       "         -0.        , -0.        , -0.        ,  0.        ,  0.08339731],\n",
       "        [ 0.        , -0.        ,  0.28103177, -0.        , -0.01709411,\n",
       "          0.        ,  0.5605258 , -0.        ,  0.11164982,  0.        ],\n",
       "        [ 0.        ,  0.        ,  0.        ,  0.        ,  0.        ,\n",
       "         -0.95717464, -0.73755927, -0.        , -0.        , -0.        ],\n",
       "        [ 0.50433323,  0.15824536,  0.89846629, -0.75894894, -0.80915143,\n",
       "         -0.31897718,  0.03236329,  0.07125298,  0.26000667, -0.94554877],\n",
       "        [ 0.        ,  0.        ,  0.        , -0.        , -0.        ,\n",
       "         -0.        ,  0.57724015,  0.        ,  0.        , -0.        ],\n",
       "        [ 0.        , -0.        ,  0.        ,  0.        , -0.86231549,\n",
       "         -0.        , -0.        ,  0.        , -0.        ,  0.        ]],\n",
       "\n",
       "       [[-0.        ,  0.        , -0.64923457, -0.        ,  0.39286587,\n",
       "          0.        , -0.        ,  0.        , -0.        ,  0.        ],\n",
       "        [-0.        , -0.        , -0.41150471, -0.47506453,  0.56413078,\n",
       "          0.96264992, -0.        ,  0.11603364, -0.        ,  0.13182446],\n",
       "        [ 0.43864208, -0.26744309,  0.32499982,  0.79584932, -0.94661515,\n",
       "         -0.73432452,  0.        , -0.        , -0.90263881, -0.17315611],\n",
       "        [ 0.71676489,  0.        ,  0.        , -0.07524671, -0.90733706,\n",
       "         -0.17194344,  0.60036222, -0.96461953,  0.53949459,  0.29566621],\n",
       "        [ 0.43006142, -0.        , -0.13911043,  0.        ,  0.        ,\n",
       "         -0.        ,  0.61977481, -0.54755716,  0.14971812, -0.        ],\n",
       "        [-0.        , -0.        , -0.28028149,  0.        , -0.60652628,\n",
       "         -0.        , -0.85873799,  0.        ,  0.        , -0.60111389],\n",
       "        [ 0.        , -0.        , -0.        ,  0.        ,  0.        ,\n",
       "         -0.        ,  0.79188239,  0.        , -0.        ,  0.        ],\n",
       "        [ 0.        ,  0.        ,  0.        , -0.10941077,  0.96051546,\n",
       "          0.        ,  0.67909024,  0.79478405, -0.        ,  0.28748107],\n",
       "        [ 0.93534342, -0.        , -0.        , -0.94171392, -0.80020078,\n",
       "          0.43508256,  0.        , -0.75094152,  0.15557238,  0.88299497],\n",
       "        [-0.31889935, -0.53507817, -0.24059741,  0.        , -0.        ,\n",
       "          0.04109749,  0.        , -0.49134691,  0.        ,  0.62676253]]])"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "R"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 2",
   "language": "python",
   "name": "python2"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}
